#ifndef GRID_H
#define GRID_H

#include "shape.h"
#include "propertybrowser/common.h"

#include <OgreSceneNode.h>
#include <OgreSceneManager.h>
#include <OgreEntity.h>

class Grid : public Shape
{
public:
	Grid(Ogre::SceneManager* sceneMng, Ogre::SceneNode* parent);
	~Grid();

	void update(PropGroup group) override;
	PropGroup getPropGroup() override;
	Ogre::SceneNode* getSceneNode() override;

private:
	void init();
	void update();

	Ogre::SceneManager* m_pSceneMng;
	Ogre::SceneNode* m_pSceneNode;

	int m_eGridType;			// 0:xy 1:xz 2:yz
	int m_nCellSize;
	int m_nCellCount;
	Ogre::ColourValue m_tGridColor;
	Ogre::ManualObject* m_pGridManualObj;
};


#endif
